import request from '@/utils/request'

// 查询物流追踪列表
export function listLogisticsTracking(query) {
  return request({
    url: '/logistics/logisticsTracking/list',
    method: 'get',
    params: query
  })
}

// 查询物流追踪列表
export function eslistLogisticsTracking(query) {
  return request({
    url: '/logistics/logisticsTracking/eslist',
    method: 'get',
    params: query
  })
}

export function getScrollToPage(query) {
  return request({
    url: '/logistics/logisticsTracking/getScrollToPage',
    method: 'get',
    params: query
  })
}


// 查询物流追踪详细
export function getLogisticsTracking(id) {
  return request({
    url: '/logistics/logisticsTracking/' + id,
    method: 'get'
  })
}


// 新增物流追踪
export function addLogisticsTracking(data) {
  return request({
    url: '/logistics/logisticsTracking',
    method: 'post',
    data: data
  })
}

// 修改物流追踪
export function updateLogisticsTracking(data) {
  return request({
    url: '/logistics/logisticsTracking',
    method: 'put',
    data: data
  })
}

// 删除物流追踪
export function delLogisticsTracking(id) {
  return request({
    url: '/logistics/logisticsTracking/' + id,
    method: 'delete'
  })
}
